package com.jinsp.androidstartup;

import android.os.SystemClock;
import android.util.Log;

import com.google.auto.service.AutoService;
import com.jinsp.startup_library.AndroidStartup;
import com.jinsp.startup_library.Startup;

/**
 * Created by luoshuai on 2/25/22
 */
@AutoService(Startup.class)
public class Task4 extends AndroidStartup<Void> {

    public Task4() {
        dependenceList.add(Task2.class);
    }

    @Override
    public Void init() {
        Log.e("TAG", "Task4 init");
        SystemClock.sleep(500);
        Log.e("TAG", "Task4 init finish");
        return null;
    }

    @Override
    public boolean isOnMainThread() {
        return false;
    }

    @Override
    public boolean needMainThreadWait() {
        return false;
    }

    @Override
    public String getStartupName() {
        return "Task4";
    }
}
